// DlgRegisterUUTINFO.cpp : implementation file
//

#include "stdafx.h"
#include "gmp.h"
#include "DlgRegisterUUTINFO.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgRegisterUUTINFO dialog


CDlgRegisterUUTINFO::CDlgRegisterUUTINFO(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgRegisterUUTINFO::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgRegisterUUTINFO)
	m_devicetype = _T("");
	m_manufacturer = _T("");
	m_deviceindex = _T("");
	m_devicename = _T("");
	m_file = _T("");
	m_customname = _T("");
	m_customaddress = _T("");
	//}}AFX_DATA_INIT
}


void CDlgRegisterUUTINFO::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgRegisterUUTINFO)
	DDX_Text(pDX, IDC_TYPE, m_devicetype);
	DDX_Text(pDX, IDC_MAKER, m_manufacturer);
	DDX_Text(pDX, IDC_INDEX, m_deviceindex);
	DDX_Text(pDX, IDC_DEVICE, m_devicename);
	DDX_CBString(pDX, IDC_COMBO, m_file);
	DDX_Text(pDX, IDC_UNIT, m_customname);
	DDX_Text(pDX, IDC_ADDRESS, m_customaddress);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgRegisterUUTINFO, CDialog)
	//{{AFX_MSG_MAP(CDlgRegisterUUTINFO)
//	ON_BN_CLICKED(IDC_CANCEL, OnInfoCancel)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgRegisterUUTINFO message handlers

BEGIN_EVENTSINK_MAP(CDlgRegisterUUTINFO, CDialog)
    //{{AFX_EVENTSINK_MAP(CDlgRegisterUUTINFO)
//	ON_EVENT(CDlgRegisterUUTINFO, IDC_NI_OK, -600 /* Click */, OnClickNiOk, VTS_NONE)
	//}}AFX_EVENTSINK_MAP
END_EVENTSINK_MAP()




//void CDlgRegisterUUTINFO::OnInfoCancel() 
//{
//	// TODO: Add your control notification handler code here
//	m_devicetype = _T("");
//	m_manufacturer = _T("");
//	m_deviceindex = _T("");
//	m_devicename = _T("");
//	m_file = _T("");
//	m_customname = _T("");
//	m_customaddress = _T("");
//	UpdateData(false);



BOOL CDlgRegisterUUTINFO::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
//	memset(&my_uutinfo,0,sizeof(UUTINFO));
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
